<!DOCTYPE html>
{__NOLAYOUT__}
<!-- saved from url=(0042)http://127.0.0.1/wenda/?/account/register/ -->
<html class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="renderer" content="webkit">
    <title>注册 - 学并思问答</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--<base href="http://127.0.0.1/wenda/?/">--><base href="."><!--[if IE]></base><![endif]-->
    <link href="" rel="shortcut icon" type="image/x-icon">
    <import type='css' file="Css.bootstrap" />
    <import type='css' file="Css.icon" />
    <import type='css' file="Css.common" />
    <import type='css' file="Css.link" />
    <import type='css' file="Css.style" />
    <import type='css' file="Css.register" />

    <script type="text/javascript">
        var _4AC7756A48FB4814D6CC919A6C376D1D="";
        var G_POST_HASH=_4AC7756A48FB4814D6CC919A6C376D1D;
        var G_INDEX_SCRIPT = "?/";
        var G_SITE_NAME = "WeCenter";
        var G_BASE_URL = "__ROOT__";
        var G_STATIC_URL = "http://127.0.0.1/wd/static";
        var G_UPLOAD_URL = "http://127.0.0.1/wd/uploads";
        var G_USER_ID = "";
        var G_USER_NAME = "";
        var G_UPLOAD_ENABLE = "N";
        var G_UNREAD_NOTIFICATION = 0;
        var G_NOTIFICATION_INTERVAL = 100000;
        var G_CAN_CREATE_TOPIC = "";
        var G_ADVANCED_EDITOR_ENABLE = "Y";

    </script>
    <import type='js' file="Js.jquery-2" />
    <import type='js' file="Js.jquery-form" />
    <import type='js' file="Js.plug-in_module" />
    <import type='js' file="Js.aws" />
    <import type='js' file="Js.aw_template" />
    <import type='js' file="Js.app" />
    <import type='js' file="Js.compatibility" />
    <!--[if lte IE 8]>
    <script type="text/javascript" src="http://127.0.0.1/wenda/static/js/respond.js"></script>
    <![endif]-->
    <style type="text/css">.fancybox-margin{margin-right:17px;}</style></head>
<body>
<noscript unselectable="on" id="noscript">
    &lt;div class="aw-404 aw-404-wrap container"&gt;
    &lt;img src="http://127.0.0.1/wenda/static/common/no-js.jpg"&gt;
    &lt;p&gt;你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!&lt;/p&gt;
    &lt;/div&gt;
</noscript>
<div class="aw-register-box">
    <div class="mod-head">
        <a href=""><img src="__ROOT__/Public/Images/login_logo.png" alt=""></a>
        <h1>注册新用户</h1>
    </div>
    <div class="mod-body">
        <form class="aw-register-form" action="" method="post" id="register_form">

            <ul>
                <li class="alert alert-danger hide error_message text-left">
                    <i class="icon icon-delete"></i> <em></em>
                </li>
                <li>
                    <input class="aw-register-name form-control" type="text" name="user_name" placeholder="用户名" tips="请输入一个 2-14 位的用户名" errortips="用户名长度不符合" value="">
                </li>
                <li>
                    <input class="aw-register-email form-control" type="text" placeholder="邮箱" name="email" tips="请输入你常用的电子邮箱作为你的账号" value="" errortips="邮箱格式不正确">
                </li>
                <li>
                    <input class="aw-register-pwd form-control" type="password" name="password" placeholder="密码" tips="请输入 6-16 个字符,区分大小写" errortips="密码不符合规则">
                </li>
                <li class="more-information hide">
                    <ul>
                        <li>
                            性别:
                            <label>
                                <input name="sex" id="sex" value="1" type="radio"> 男                            </label>&nbsp;
                            <label>
                                <input name="sex" id="sex" value="2" type="radio"> 女 </label>&nbsp;
                            <label>
                                <input name="sex" id="sex" value="3" type="radio" checked="checked"> 保密                            </label>
                        </li>
                        <li>
                            职业:
                            <select name="job_id">
                                <option value="">--</option>
                                <option value="1">销售</option><option value="2">市场/市场拓展/公关</option><option value="3">商务/采购/贸易</option><option value="4">计算机软、硬件/互联网/IT</option><option value="5">电子/半导体/仪表仪器</option><option value="6">通信技术</option><option value="7">客户服务/技术支持</option><option value="8">行政/后勤</option><option value="9">人力资源</option><option value="10">高级管理</option><option value="11">生产/加工/制造</option><option value="12">质控/安检</option><option value="13">工程机械</option><option value="14">技工</option><option value="15">财会/审计/统计</option><option value="16">金融/银行/保险/证券/投资</option><option value="17">建筑/房地产/装修/物业</option><option value="18">交通/仓储/物流</option><option value="19">普通劳动力/家政服务</option><option value="20">零售业</option><option value="21">教育/培训</option><option value="22">咨询/顾问</option><option value="23">学术/科研</option><option value="24">法律</option><option value="25">美术/设计/创意</option><option value="26">编辑/文案/传媒/影视/新闻</option><option value="27">酒店/餐饮/旅游/娱乐</option><option value="28">化工</option><option value="29">能源/矿产/地质勘查</option><option value="30">医疗/护理/保健/美容</option><option value="31">生物/制药/医疗器械</option><option value="32">翻译（口译与笔译）</option><option value="33">公务员</option><option value="34">环境科学/环保</option><option value="35">农/林/牧/渔业</option><option value="36">兼职/临时/培训生/储备干部</option><option value="37">在校学生</option><option value="38">其他</option>                            </select>
                        </li>
                        <li>
                            所在城市:
                            <select name="province" class="select_area" style="display:inline-block"><option value="">请选择省份或直辖市</option><option value="安徽省">安徽省</option><option value="北京市">北京市</option><option value="福建省">福建省</option><option value="甘肃省">甘肃省</option><option value="广东省">广东省</option><option value="广西壮族自治区">广西壮族自治区</option><option value="贵州省">贵州省</option><option value="海南省">海南省</option><option value="河北省">河北省</option><option value="河南省">河南省</option><option value="黑龙江省">黑龙江省</option><option value="湖北省">湖北省</option><option value="湖南省">湖南省</option><option value="吉林省">吉林省</option><option value="江苏省">江苏省</option><option value="江西省">江西省</option><option value="辽宁省">辽宁省</option><option value="内蒙古自治区">内蒙古自治区</option><option value="宁夏回族自治区">宁夏回族自治区</option><option value="青海省">青海省</option><option value="山东省">山东省</option><option value="山西省">山西省</option><option value="陕西省">陕西省</option><option value="上海市">上海市</option><option value="四川省">四川省</option><option value="天津市">天津市</option><option value="西藏自治区">西藏自治区</option><option value="新疆维吾尔自治区">新疆维吾尔自治区</option><option value="云南省">云南省</option><option value="浙江省">浙江省</option><option value="重庆市">重庆市</option><option value="香港">香港</option><option value="澳门">澳门</option><option value="台湾">台湾</option></select>

                            <select name="city" class="select_area"></select>
                        </li>
                        <li>
                            <input type="text" class="form-control" placeholder="一句话介绍" id="welcome_signature" value="" name="signature">
                        </li>
                    </ul>
                </li>
                <li>
                    <!--   <hr>
                      <a class="more-information-btn">更多资料</a> -->
                </li>
                <li class="aw-register-verify">
                    <img class="pull-right" id="captcha" onclick="this.src = '__ROOT__/index.php/index/register/code/'+Math.floor(Math.random() * 10000)" src="">
                    <input type="text" class="form-control" name="seccode_verify" placeholder="验证码">
                </li>

                <li class="clearfix">
                    <button class="btn btn-large btn-blue btn-block">注册</button>
                </li>
            </ul>
        </form>
    </div>
    <div class="mod-footer"></div>
</div>

<script type="text/javascript">
    $(document).ready(function ()
    {
        $.get(G_BASE_URL + '/account/ajax/register_agreement/', function (result) { $('#register_agreement').html(result.err); }, 'json');

        $('.aw-agreement-btn').click(function()
        {
            if ($('.aw-register-agreement').is(':visible'))
            {
                $('.aw-register-agreement').hide();
            }
            else
            {
                $('.aw-register-agreement').show();
            }
        });

        $('.more-information-btn').click(function()
        {
            $('.more-information').fadeIn();
            $(this).parent().hide();
        });

        verify_register_form('#register_form');

        /* 注册页面验证 */
        function verify_register_form(element)
        {
            $(element).find('[type=text], [type=password]').on({
                focus : function()
                {
                    if (typeof $(this).attr('tips') != 'undefined' && $(this).attr('tips') != '')
                    {
                        $(this).parent().append('<span class="aw-reg-tips">' + $(this).attr('tips') + '</span>');
                    }
                },
                blur : function()
                {
                    if ($(this).attr('tips') != '')
                    {
                        switch ($(this).attr('name'))
                        {
                            case 'user_name' :
                                var _this = $(this);
                                $(this).parent().find('.aw-reg-tips').detach();
                                if ($(this).val().length >= 0 && $(this).val().length < 2)
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + $(this).attr('errortips') + '</span>');
                                    return;
                                }
                                if ($(this).val().length > 17)
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + $(this).attr('errortips') + '</span>');
                                    return;
                                }
                                else
                                {
                                    $.post(G_BASE_URL + '/account/ajax/check_username/',
                                            {
                                                username: $(this).val()
                                            }, function (result)
                                            {
                                                if (result.errno == -1)
                                                {
                                                    _this.parent().find('.aw-reg-tips').detach();
                                                    _this.parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + result.err + '</span>');
                                                }
                                                else
                                                {
                                                    _this.parent().find('.aw-reg-tips').detach();
                                                    _this.parent().append('<span class="aw-reg-tips aw-reg-right"><i class="aw-icon i-followed"></i></span>');
                                                }
                                            }, 'json');
                                }
                                return;

                            case 'email' :
                                $(this).parent().find('.aw-reg-tips').detach();
                                var emailreg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
                                if (!emailreg.test($(this).val()))
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + $(this).attr('errortips') + '</span>');
                                    return;
                                }
                                else
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-right"><i class="aw-icon i-followed"></i></span>');
                                }
                                return;

                            case 'password' :
                                $(this).parent().find('.aw-reg-tips').detach();
                                if ($(this).val().length >= 0 && $(this).val().length < 6)
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + $(this).attr('errortips') + '</span>');
                                    return;
                                }
                                if ($(this).val().length > 17)
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-err"><i class="aw-icon i-err"></i>' + $(this).attr('errortips') + '</span>');
                                    return;
                                }
                                else
                                {
                                    $(this).parent().find('.aw-reg-tips').detach();
                                    $(this).parent().append('<span class="aw-reg-tips aw-reg-right"><i class="aw-icon i-followed"></i></span>');
                                }
                                return;

                        }
                    }

                }
            });
        }

        $('.select_area').LocationSelect({
            labels: ["请选择省份或直辖市", "请选择城市"],
            elements: document.getElementsByTagName("select"),
            detector: function () {
                this.select(["", ""]);
            },
            dataUrl: G_BASE_URL.replace('/?', '') + '/static/js/areas.js'
        });
    });
</script>

<div class="aw-footer-wrap">
    <div class="aw-footer">
        Copyright © 2016, All Rights Reserved

        <span class="hidden-xs">Powered By <a href="http://www.wecenter.com/?copyright" target="blank">学并思问答 3.1.7</a></span>

    </div>
</div>

<a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon icon-up"></i></a>


<!-- DO NOT REMOVE -->
<div id="aw-ajax-box" class="aw-ajax-box"></div>

<div style="display:none;" id="__crond"><img src="./register_files/saved_resource(1)" width="1" height="1"></div>

<!-- Escape time: 0.21184110641479 --><!-- / DO NOT REMOVE -->



</body>
</html>